import request from '@/utils/request'

// 查询活动任务用户记录列表
export function listActivityuser(query) {
  return request({
    url: '/activity/activityuser/list',
    method: 'get',
    params: query
  })
}

// 查询活动任务用户记录详细
export function getActivityuser(id) {
  return request({
    url: '/activity/activityuser/' + id,
    method: 'get'
  })
}

// 新增活动任务用户记录
export function addActivityuser(data) {
  return request({
    url: '/activity/activityuser',
    method: 'post',
    data: data
  })
}

// 修改活动任务用户记录
export function updateActivityuser(data) {
  return request({
    url: '/activity/activityuser',
    method: 'put',
    data: data
  })
}

// 删除活动任务用户记录
export function delActivityuser(id) {
  return request({
    url: '/activity/activityuser/' + id,
    method: 'delete'
  })
}

// 导出活动任务用户记录
export function exportActivityuser(query) {
  return request({
    url: '/activity/activityuser/export',
    method: 'get',
    params: query
  })
}